package cn.gok.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Log {
    private Integer id;
    private String username;
    private String content;
    private String result;
    private String title;
    private Integer state;
    private String time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String  getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(time);
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", content='" + content + '\'' +
                ", result='" + result + '\'' +
                ", title='" + title + '\'' +
                ", state=" + state +
                ", time='" + time + '\'' +
                '}';
    }
}
